package com.datam.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.datam.query.QueryConpanyTxInfo;
import com.datam.domain.ConpanyTxInfoDO;
@Mapper
public interface ConpanyTxInfoDAO {

	public ConpanyTxInfoDO selectConpanyTxInfoById(@Param("id")Long id);

	public List< ConpanyTxInfoDO > selectConpanyTxInfoList(QueryConpanyTxInfo queryConpanyTxInfo);

	public Integer countConpanyTxInfoList(QueryConpanyTxInfo queryConpanyTxInfo);

	public int insertConpanyTxInfo(ConpanyTxInfoDO conpanyTxInfoDO);

	public int updateConpanyTxInfoById(ConpanyTxInfoDO conpanyTxInfoDO);
	
	public List<String> selectDistinctList(QueryConpanyTxInfo queryConpanyTxInfo);

	public void deleteByid(@Param("id")long id);

	public void deleteTX(@Param("id")long id);

	@Select("delete from conpany_tx_info where COMPANYID = #{id}")
	public void deleteByCompany(long id);

}

